﻿using AgvDispatchSystemWpf.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgvDispatchSystemWpf.Model
{
    public class DeviceModel:NotifyPropertyBase
    {
        public string DeviceId { get; set; }

        public string DeviceName { get; set; }

        public AgvModel AgvInfo { get; set; } = new AgvModel();

        private bool _isRunning;

        public bool IsRunning
        {
            get { return _isRunning; }
            set 
            {
                _isRunning = value;
                RaisePropertyChanged();
            }
        }

        private bool _isWarning=false;

        public bool IsWarning
        {
            get { return _isWarning; }
            set { _isWarning = value;RaisePropertyChanged(); }
        }

        public ObservableCollection<MonitorValueModel> MonitorValueList { get; set; } = new ObservableCollection<MonitorValueModel>();
        public ObservableCollection<WarningMessageModel> WarningMessageList { get; set; } = new ObservableCollection<WarningMessageModel>();
    }
}
